import Vue from 'vue'
import App from './App.vue'
import router from './router'

// 导入FontAwesome
import '@fortawesome/fontawesome-free/css/all.css'

// 引入动画库
import AOS from 'aos'
import 'aos/dist/aos.css'
import { KinesisContainer, KinesisElement } from 'vue-kinesis'
import 'animate.css'
import { gsap } from 'gsap'
import VueParticles from 'vue-particles'

// 注册全局组件
Vue.component('kinesis-container', KinesisContainer)
Vue.component('kinesis-element', KinesisElement)

// 使用vue-particles
Vue.use(VueParticles)

// 挂载gsap到Vue原型
Vue.prototype.$gsap = gsap

Vue.config.productionTip = false

// 初始化AOS
AOS.init({
  duration: 800,
  easing: 'ease-in-out',
  once: true
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
